local huanlei = fk.CreateSkill{
  name = "lingling__huanlei",
}

Fk:loadTranslationTable{
  ["lingling__huanlei"] = "还酹",
  [":lingling__huanlei"] = "游戏开始时，你获得一张不计入手牌上限的【酒】。每轮限一次，当你使用【酒】后，你可以获得之。",
}

huanlei:addEffect(fk.GameStart, {
  can_trigger = function (self, event, target, player, data)
    return player:hasSkill(huanlei.name)
  end,
  on_cost = Util.TrueFunc,
  on_use = function (self, event, target, player, data)
    local room = player.room
    local card = room:printCard("ling__analeptic", Card.Spade, 9)
    room:moveCardTo(card, Card.PlayerHand, player, fk.ReasonJustMove, huanlei.name, nil, true, player, huanlei.name)
  end,
})

huanlei:addEffect(fk.CardUseFinished, {
  anim_type = "support",
  can_trigger = function (self, event, target, player, data)
    return target == player and player:hasSkill(huanlei.name) and
      data.card.trueName == "analeptic" and player.room:getCardArea(data.card) == Card.Processing and
      player:usedEffectTimes(self.name, Player.HistoryRound) == 0
  end,
  on_use = function (self, event, target, player, data)
    player.room:moveCardTo(data.card, Card.PlayerHand, player, fk.ReasonJustMove, huanlei.name, nil, true, player)
  end,
})

huanlei:addEffect("maxcards", {
  exclude_from = function (self, player, card)
    return card:getMark(huanlei.name) > 0
  end,
})

return huanlei
